package router

import (
	"go-admin/app/alarm/apis"

	"github.com/gin-gonic/gin"
	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
)

func init() {
	routerCheckRole = append(routerCheckRole, registerSysAlarmRouter)
}

// registerSysAlarmRouter
func registerSysAlarmRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	api := apis.SysAlarm{}
	r := v1.Group("/sys-alarm").Use(authMiddleware.MiddlewareFunc())
	{
		r.GET("", api.GetPage)
	}
}
